//
//  UnaryOperatorNode.m
//  StrategySimulator
//
//  Created by jiro on 12/07/05.
//  Copyright 2012 jiro music. All rights reserved.
//

#import "UnaryOperatorNode.h"

#import "../../Commons.h"



UnaryOperatorNode::UnaryOperatorNode( Type typeArg )
{
	type = typeArg;
}

NSString* UnaryOperatorNode::query() const
{
	switch ( type )
	{
	case UnaryOperatorNode::Type_Nigate:
		return @" not ";
	case UnaryOperatorNode::Type_Plus:
		return @" + ";
	case UnaryOperatorNode::Type_Minus:
		return @" - ";
	default:
		return nil;
	}
}

bool UnaryOperatorNode::isBinary() const
{
	return false;
}
